\hypertarget{classduye_1_1_thread_worker}{\section{duye\-:\-:Thread\-Worker Class Reference}
\label{classduye_1_1_thread_worker}\index{duye\-::\-Thread\-Worker@{duye\-::\-Thread\-Worker}}
}


thread worker, class \hyperlink{classduye_1_1_thread_pool}{Thread\-Pool} depend on  




{\ttfamily \#include $<$duye\-\_\-thread\-\_\-pool.\-h$>$}

Inheritance diagram for duye\-:\-:Thread\-Worker\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{classduye_1_1_thread_worker}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classduye_1_1_thread_worker_a7676025ecda70774a08af711ed37bf0a}{Thread\-Worker} (\hyperlink{classduye_1_1_thread_pool}{Thread\-Pool} $\ast$thread\-Pool, const uint32 \hyperlink{classduye_1_1_thread_worker_abfdaf9b92ec4f70c4adf7fe45ec19a08}{worker\-Id})
\begin{DoxyCompactList}\small\item\em constructor \end{DoxyCompactList}\item 
uint32 \hyperlink{classduye_1_1_thread_worker_abfdaf9b92ec4f70c4adf7fe45ec19a08}{worker\-Id} () const 
\begin{DoxyCompactList}\small\item\em get thread worker I\-D \end{DoxyCompactList}\item 
bool \hyperlink{classduye_1_1_thread_worker_a245d9c133a75e44349dd0dd98b5a8043}{do\-Work} (\hyperlink{classduye_1_1_thread_job}{Thread\-Job} $\ast$thread\-Job, void $\ast$user\-Data)
\begin{DoxyCompactList}\small\item\em to do work \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
thread worker, class \hyperlink{classduye_1_1_thread_pool}{Thread\-Pool} depend on 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classduye_1_1_thread_worker_a7676025ecda70774a08af711ed37bf0a}{\index{duye\-::\-Thread\-Worker@{duye\-::\-Thread\-Worker}!Thread\-Worker@{Thread\-Worker}}
\index{Thread\-Worker@{Thread\-Worker}!duye::ThreadWorker@{duye\-::\-Thread\-Worker}}
\subsubsection[{Thread\-Worker}]{\setlength{\rightskip}{0pt plus 5cm}duye\-::\-Thread\-Worker\-::\-Thread\-Worker (
\begin{DoxyParamCaption}
\item[{{\bf Thread\-Pool} $\ast$}]{thread\-Pool, }
\item[{const uint32}]{worker\-Id}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [explicit]}}}\label{classduye_1_1_thread_worker_a7676025ecda70774a08af711ed37bf0a}


constructor 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em worker\-Id} & \-: worker I\-D \\
\hline
\end{DoxyParams}


\subsection{Member Function Documentation}
\hypertarget{classduye_1_1_thread_worker_a245d9c133a75e44349dd0dd98b5a8043}{\index{duye\-::\-Thread\-Worker@{duye\-::\-Thread\-Worker}!do\-Work@{do\-Work}}
\index{do\-Work@{do\-Work}!duye::ThreadWorker@{duye\-::\-Thread\-Worker}}
\subsubsection[{do\-Work}]{\setlength{\rightskip}{0pt plus 5cm}bool duye\-::\-Thread\-Worker\-::do\-Work (
\begin{DoxyParamCaption}
\item[{{\bf Thread\-Job} $\ast$}]{thread\-Job, }
\item[{void $\ast$}]{user\-Data}
\end{DoxyParamCaption}
)}}\label{classduye_1_1_thread_worker_a245d9c133a75e44349dd0dd98b5a8043}


to do work 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em thread\-Job} & \-: user thread job \\
\hline
\mbox{\tt in}  & {\em user\-Data} & \-: user data \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true/false 
\end{DoxyReturn}
\hypertarget{classduye_1_1_thread_worker_abfdaf9b92ec4f70c4adf7fe45ec19a08}{\index{duye\-::\-Thread\-Worker@{duye\-::\-Thread\-Worker}!worker\-Id@{worker\-Id}}
\index{worker\-Id@{worker\-Id}!duye::ThreadWorker@{duye\-::\-Thread\-Worker}}
\subsubsection[{worker\-Id}]{\setlength{\rightskip}{0pt plus 5cm}uint32 duye\-::\-Thread\-Worker\-::worker\-Id (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classduye_1_1_thread_worker_abfdaf9b92ec4f70c4adf7fe45ec19a08}


get thread worker I\-D 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em worker\-Id} & \-: worker I\-D \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
thread worker I\-D 
\end{DoxyReturn}


The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
Z\-:/duye/src/duyebase/public/\hyperlink{duye__thread__pool_8h}{duye\-\_\-thread\-\_\-pool.\-h}\end{DoxyCompactItemize}
